package com.platform.usercenter.service;

import com.platform.usercenter.domain.SysOrganizationDept;
import com.platform.usercenter.domain.vo.TreeSelect;

import java.util.List;

/**
 * 组织部门Service接口
 *
 * @author platform
 * @date 2024-10-24
 */
public interface ISysOrganizationDeptService {
    /**
     * 查询组织部门
     *
     * @param deptId 组织部门主键
     * @return 组织部门
     */
    SysOrganizationDept selectSysOrganizationDeptByDeptId(Long deptId);

    /**
     * 查询组织部门列表
     *
     * @param sysOrganizationDept 组织部门
     * @return 组织部门集合
     */
    List<SysOrganizationDept> selectSysOrganizationDeptList(SysOrganizationDept sysOrganizationDept);

    /**
     * 新增组织部门
     *
     * @param sysOrganizationDept 组织部门
     * @return 结果
     */
    int insertSysOrganizationDept(SysOrganizationDept sysOrganizationDept);

    /**
     * 修改组织部门
     *
     * @param sysOrganizationDept 组织部门
     * @return 结果
     */
    int updateSysOrganizationDept(SysOrganizationDept sysOrganizationDept);

    /**
     * 批量删除组织部门
     *
     * @param deptIds 需要删除的组织部门主键集合
     * @return 结果
     */
    int deleteSysOrganizationDeptByDeptIds(Long[] deptIds);

    /**
     * 删除组织部门信息
     *
     * @param deptId 组织部门主键
     * @return 结果
     */
    int deleteSysOrganizationDeptByDeptId(Long deptId);

    List<TreeSelect> selectDeptTreeList4Admin(SysOrganizationDept dept);

    List<TreeSelect> selectDeptTreeList(SysOrganizationDept dept);

    List<TreeSelect> noPermissionsDeptTree(SysOrganizationDept dept);

    List<TreeSelect> selectUserAllDeptTree();

    List<SysOrganizationDept> selectDeptList(SysOrganizationDept dept);

    List<TreeSelect> buildDeptTreeSelect(List<SysOrganizationDept> deptList);

    List<SysOrganizationDept> buildDeptTree(List<SysOrganizationDept> deptList);

    List<TreeSelect> selectAllDeptList(SysOrganizationDept dept);

    List<TreeSelect> selectCurrentOrgDeptList(SysOrganizationDept dept);

    List<TreeSelect> selectUserAllDept();
}
